define(['app'], function(app) {
	'use strict';

	//实例化方法
	var factory = function(Http) {

		//返回信息
		return {
			//预存款明细一览
			getList: function(nPage,callback,calldone) {
				Http.post({
					method: 'member.advance.search',
					pagelimit: 15,
					nPage: nPage
				}, function(result) {
					//函数回调
					if(callback)
						callback(result.result);
				}, function(e) {
					
				}, function() {
					if(calldone)
						calldone();
				});
			}
			
		};
	}

	factory.$inject = ['Http'];
	return app.registerService("Predepositdetails", factory);
});